<?php

return [
    [
        'label'   => 'SMS管理',
        'url'     => ['#'], // 一级菜单，可以设个url，如果是两级以上菜单，url会无效
        'match'   => '@^/sms.*@',
        'visible' => true,
        'icon' => 'fa fa-mobile-phone',
        // items可以为空，即没下级菜单
        'items'   => [
            [
                'label' => '客户管理',
                'url'   => ['/sms/customer'],
                'match' => '@^/sms/customer.*@',
                'auth'  => [
                    'route:sms/customer/index',
                    'route:sms/customer/view',
                    'route:sms/customer/update',
                    'route:sms/customer/delete',
                ],
            ],
            [
                'label' => '发送列表',
                'url'   => ['/sms/event'],
                'match' => '@^/sms/event.*@',
                'auth'  => [
                    'route:sms/event/index',
                    'route:sms/event/view',
                    'route:sms/event/update',
                    'route:sms/event/delete',
                ],
            ],
        ],
    ],
];
